package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 单据子表
 * @TableName yd_depot_item
 */
@TableName(value ="yd_depot_item")
@Data
public class YdDepotItem implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 表头Id
     */
    @TableField(value = "header_id")
    private Long headerId;

    /**
     * 商品Id
     */
    @TableField(value = "material_id")
    private Long materialId;

    /**
     * 商品扩展id
     */
    @TableField(value = "material_extend_id")
    private Long materialExtendId;

    /**
     * 商品计量单位
     */
    @TableField(value = "material_unit")
    private String materialUnit;

    /**
     * 多属性
     */
    @TableField(value = "sku")
    private String sku;

    /**
     * 数量
     */
    @TableField(value = "oper_number")
    private Integer operNumber;

    /**
     * 基础数量，如kg、瓶
     */
    @TableField(value = "basic_number")
    private BigDecimal basicNumber;

    /**
     * 单价
     */
    @TableField(value = "unit_price")
    private BigDecimal unitPrice;

    /**
     * 采购单价
     */
    @TableField(value = "purchase_unit_price")
    private BigDecimal purchaseUnitPrice;

    /**
     * 含税单价
     */
    @TableField(value = "tax_unit_price")
    private BigDecimal taxUnitPrice;

    /**
     * 金额
     */
    @TableField(value = "all_price")
    private BigDecimal allPrice;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 仓库ID
     */
    @TableField(value = "depot_id")
    private Long depotId;

    /**
     * 调拨时，对方仓库Id
     */
    @TableField(value = "another_depot_id")
    private Long anotherDepotId;

    /**
     * 税率
     */
    @TableField(value = "tax_rate")
    private BigDecimal taxRate;

    /**
     * 税额
     */
    @TableField(value = "tax_money")
    private BigDecimal taxMoney;

    /**
     * 价税合计
     */
    @TableField(value = "tax_last_money")
    private BigDecimal taxLastMoney;

    /**
     * 商品类型
     */
    @TableField(value = "material_type")
    private String materialType;

    /**
     * 序列号列表
     */
    @TableField(value = "sn_list")
    private String snList;

    /**
     * 批号
     */
    @TableField(value = "batch_number")
    private String batchNumber;

    /**
     * 有效日期
     */
    @TableField(value = "expiration_date")
    private Date expirationDate;

    /**
     * 关联明细id
     */
    @TableField(value = "link_id")
    private Long linkId;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}